module.exports = {
	presets: [
		[
			"@babel/preset-env",
			{
				modules: false,
				targets: {
					browsers: ["> 1%", "last 2 versions", "not ie <= 9"],
				},
			},
		],
		"@babel/preset-react",
	],
	plugins: [
		["@babel/plugin-transform-runtime", { corejs: false }],
		"@babel/plugin-syntax-dynamic-import",
		["@babel/plugin-proposal-decorators", { legacy: true }],
		[
			"@babel/plugin-proposal-class-properties",
			{
				loose: true,
			},
		],
		[
			"import",
			{
				libraryName: "antd",
				style: true,
				libraryDirectory: "es",
			},
		],
		[
			"prismjs",
			{
				languages: ["javascript", "scss", "jsx", "json", "yaml"],
				plugins: ["line-numbers"],
				theme: "tomorrow",
				css: true,
			},
		],
	],
};
